<h2><?php echo '牌号:'.$model->plate_no.'的'.($model->kind==0?'车辆':'尾板').'营运强制保养信息';?></h2>
<div class="actionBar1">
<?php 
	if(isset($_GET['ok'])) {if($_GET['ok']==0) $mess='添加成功！'; else $mess='更新成功！';unset($_GET['ok']);}//判断添加/更新信息
	$act=isset($_GET['ret'])?$_GET['ret']:$ret;//判断show以后返回路径
	unset($_GET['ret']);unset($_GET['id']);
	$url=substr($act,-5)=='.html'?$act:array($act)+$_GET;//返回路径以html结尾,act将普通变量赋值
?>
[<?php echo CHtml::link('返回',$url); ?>]
</div>
<table class="dataGrid" width="80%">
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('plate_no')); ?>
</th>
    <td><?php echo CHtml::encode($model->plate_no); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('property_owner')); ?>
</th>
    <td><?php echo CHtml::encode($model->property_owner); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('kind')); ?>
</th>
    <td><?php echo CHtml::encode($model->getKindName()); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('mm_date')); ?>
</th>
    <td><?php echo CHtml::encode($model->mm_date); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('next_mm_date')); ?>
</th>
    <td><?php echo CHtml::encode($model->next_mm_date); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('mm_cost')); ?>
</th>
    <td><?php echo CHtml::encode($model->mm_cost,'%.2f'); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('other_cost')); ?>
</th>
    <td><?php echo CHtml::encode($model->other_cost,'%.2f'); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('total_cost')); ?>
</th>
    <td><?php echo CHtml::encode($model->total_cost,'%.2f'); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('remark')); ?>
</th>
    <td><?php echo CHtml::encode($model->remark); ?>
</td>
</tr>
<tr>
	<th class="label"><?php echo CHtml::encode($model->getAttributeLabel('create_time')); ?>
</th>
    <td><?php echo CHtml::encode($model->create_time); ?>
</td>
</tr>
</table>
<?php if(isset($mess)) echo "<script>alert('$mess');</script>";?>
<div class="actionBar1">[<?php echo CHtml::link('返回',$url); ?>]
</div>